﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WorkBasket.Data.Entities
{
    public class Group
    {
        [Key]
        public int GroupID { get; set; }
        public string GroupName { get; set; }

        public virtual int UnitID { get; set; }
        [JsonIgnore]
        public virtual Unit Unit { get; set; }

        [JsonIgnore]
        public virtual ICollection<GroupProperty> GroupPropertys { get; set; }

        [JsonIgnore]
        public virtual ICollection<GroupMember> GroupMembers { get; set; }
    }
}
